﻿using AbpVnext_Module.Dto;
using AbpVnext_Module.Iservice;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.AspNetCore.Mvc;

namespace AbpVnext_Module.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class OldProductImageController : AbpController
    {
        public IProductImageService ProductImageService { get; set; }
        public OldProductImageController()
        {

        }

        /// <summary>
        /// 添加商品
        /// </summary>
        /// <param name="productImageDto"></param>
        /// <returns></returns>
        [HttpPost]
        public async Task<string> InsertProductImage(ProductImageCreateDto productImageDto)
        {
            await ProductImageService.CreateAsync(productImageDto);
            return "成功";
        }
    }
}
